for num in $(seq 1 5)
do
    kill -2 $1
    sleep 1
done

for num in $(seq 1 5)
do
    kill -40 $1
    sleep 1
done